<?php include show_tpl('public_header.inc.htm'); ?>

<link charset="utf-8" rel="stylesheet" href="view/css/news.css" type="text/css">

<div class="page newspage" sub-page="service-down">
    <div class="tab">
    	<div class="hd pos_r">
        	<div class="wrapper">
        	<input type="hidden" id="channleids" value="6052">
            	<ul class="overHidden pos_r">
                <li <?php if($cid==1){ ?>class="current"<?php } ?> id="6051"><span>公司公告</span></li>
                <li <?php if($cid==2){ ?>class="current"<?php } ?> id="6052"><span>公司新闻</span></li>
                </ul>
                
            </div>
            <div class="newsbg pos_a"><img class="wid100" src="view/img/newsBg.jpg"></div>
        </div>
        <div class="bd">
        	<div class="wrapper">
				<div class="tabBox" <?php if($cid!=1){ ?>style="display: none;"<?php } ?>>
					<ul class="newslist overHidden" id="page1">
						
						<?php foreach($notice as $n){ ?>
						<li class="delay1">
							<div class="inner overHidden">
								<div class="fl news-day iw roller3d">
									<span><?php echo date('d', $n['time']);?><i class="num0"><?php echo date('d', $n['time']);?></i></span>
								</div>
								<div class="fl news-date font12">
									<div class="pos_r"><span class="month_pos"><?php echo date('m', $n['time']);?></span><i class="pos_a"></i></div>
									<p class="mt-15"><?php echo date('Y', $n['time']);?></p>
								</div>
								<div class="zoom news-main">
									<h2 class="font16 text_ell overHidden"><a href="<?php echo url('article-'.$n['id']);?>"><?php echo $n['title'];?></a></h2>
									<div class="font12 hui666 mt-5">
									<p class="em2"><?php echo xn_substr(strip_tags($n['content']), 0, 50);?></p>
									</div>
									<p class="mt-5"><a href="<?php echo url('article-'.$n['id']);?>" class="btn-det font12">展开查看详细</a></p>
								</div>
							</div>
						</li>
						<?php } ?>
					</ul>
					<!--<a id="oneId" href="javascript:nextOnePage('page1')" class="btn-more btn-more1 tc cursor_p mt-45 font16">加载更多&nbsp;&gt;&gt;</a>-->
				</div>
				<div class="tabBox">
					<ul class="newslist overHidden" id="page2">
					
						<?php foreach($news as $n){ ?>
						<li class="delay1 active">
							<div class="inner overHidden">
								<div class="fl news-day iw roller3d">
									<span><?php echo date('d', $n['time']);?><i class="num0"><?php echo date('d', $n['time']);?></i></span>
								</div>
								<div class="fl news-date font12">
									<div class="pos_r"><span class="month_pos"><?php echo date('m', $n['time']);?></span><i class="pos_a"></i></div>
									<p class="mt-15"><?php echo date('Y', $n['time']);?></p>
								</div>
								<div class="zoom news-main">
									<h2 class="font16 text_ell overHidden"><a href="<?php echo url('article-'.$n['id']);?>"><?php echo $n['title'];?></a></h2>
									<div class="font12 hui666 mt-5">
									<p class="em2"><?php echo xn_substr(strip_tags($n['content']), 0, 50);?></p>
									</div>
									<p class="mt-5"><a href="<?php echo url('article-'.$n['id']);?>" class="btn-det font12">展开查看详细</a></p>
								</div>
							</div>
						</li>
						<?php } ?>
					</ul>
					<!--<a id="twoId" href="javascript:nextTwoPage('page2')" class="btn-more1 tc cursor_p mt-45 font16">加载更多&nbsp;&gt;&gt;</a>-->
				</div>
            </div>
        </div>
    </div>
</div>

<?php include show_tpl('public_footer.inc.htm'); ?>

<script>
    $(function () {
        $(".tab .hd ul li").on("click", function () {
            var that = this;
            if (!$(that).hasClass("current")) {
                $(that).addClass("current").siblings().removeClass("current");
            }
            var index = $(that).index();
            $(".tab .tabBox").each(function (i, o) {
                if (i == index) {
                    $(o).slideDown();
                } else {
                    $(o).slideUp();
                }
            })
        })
    })

</script>

